package com.sanjin.service;


import com.sanjin.entity.Admin;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * @description:
 * @author: sanjin
 * @date: 2019/5/4 18:57
 */
public interface AdminService {

    /**
     * 用户名密码创建jwt token
     * @param username
     * @param password
     * @return 令牌
     */
    String createToken(String username, String password);

    /**
     * 注册
     * @return
     */
    Admin register(Admin admin);

    Admin queryAdminByUsername(String username);

    void deleteAdminsByIds(List<Integer> ids);

    Admin updateAdmin(Admin admin);

    List<Admin> queryAdmins();

    Admin queryAdminById(Integer id);
}
